#include <Riostream.h>
 
#include "sPHENIX_CalorimeterHit.h"
 
/// \cond CLASSIMP
ClassImp(sPHENIX_CalorimeterHit)
/// \endcond
 
//_____________________________________________________________________________
sPHENIX_CalorimeterHit::sPHENIX_CalorimeterHit() 
: TObject(),
  fEdepSensingMat(0.),
  fTrackLengthSensingMat(0.),
  fCellCopyNo(0.),
  fTowerCopyNo(0.)
{
  /// Default constructor
}
 
//_____________________________________________________________________________
sPHENIX_CalorimeterHit::~sPHENIX_CalorimeterHit() 
{
  /// Destructor
}
 
//_____________________________________________________________________________
void sPHENIX_CalorimeterHit::Print(Option_t* /*option*/) const
{
  /// Print hit info
 
  cout << "In sensingmaterial(ccn,tcn): " << "(" 
       << fCellCopyNo << ", " << fTowerCopyNo << ")" << endl
       << "   energy deposit (MeV): " << fEdepSensingMat * 1.0e03 << endl
       << "   track length (cm): " << fTrackLengthSensingMat  << endl;
}
 
//_____________________________________________________________________________
void sPHENIX_CalorimeterHit::Reset()
{
  /// Reset all accounted values
  fEdepSensingMat = 0.;
  fTrackLengthSensingMat = 0.;
  fCellCopyNo = 0.;
  fTowerCopyNo = 0.;
}
